package com.campus.counseling.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

@Data
@Configuration
@ConfigurationProperties(prefix = "alipay")
public class AlipayConfig {
    
    /**
     * 支付宝应用ID
     */
    private String appId;
    
    /**
     * 商户私钥 - PKCS8格式
     */
    private String privateKey;
    
    /**
     * 支付宝公钥
     */
    private String publicKey;
    
    /**
     * 支付宝网关
     */
    private String gatewayUrl = "https://openapi-sandbox.dl.alipaydev.com/gateway.do";
    
    /**
     * 支付成功回调地址
     */
    private String notifyUrl;
    
    /**
     * 支付成功返回地址
     */
    private String returnUrl;
    
    /**
     * 签名类型
     */
    private String signType = "RSA2";
    
    /**
     * 格式
     */
    private String format = "json";
    
    /**
     * 编码
     */
    private String charset = "UTF-8";
} 